package com.lilicould.service;

import com.lilicould.entity.Account;
import com.lilicould.entity.Employee;
import com.lilicould.entity.Tenant;

public interface AccountService {
    Account login(String username, String password);

    boolean registerTenant(Account account, Tenant tenant, String phone);

    boolean registerEmployee(Account account, Employee employee, String roleId,String skill);

    //检查用户名是否已经存在
    boolean checkUsername(String username);

    Tenant selectTenantByUsername(String username);

    Employee selectEmployeeByUsername(String username);

    // 根据用户ID删除账户（将status置为0）
    // 用户ID与租户ID，员工ID均为唯一关联关系
    boolean deleteAccount(String userId);

    // 通过userId获取账户信息
    Account selectAccountById(String userId);



}
